package com.example.rdb.handle.mysql.write;


import com.example.rdb.handle.mysql.entity.SourceMaterial;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface CmsWriteMapper {

    boolean insterSourceMaterial(@Param("list") List<SourceMaterial> list);

    Integer batchCmsInsertData(@Param("tableName") String tableName, @Param("cols") Set<String> cols, @Param("data") List<Map<String,Object>> data);

    Integer getCmsDatabaseNum(@Param("tableName") String tableName, @Param("id") String id);

    Integer getSourceMaterialNum();


    Integer deleteDataByAppId(String appWrite);
}